package com.ibs.hadoop.hbase;

public class DnsQueryLteInfo {

	private long frame;
	private long lastFrame;
	private String ttime;
	private long recordFileIndex;
	private long lastFileindex;
	private String apn;
	private long userIpValue;
	private long dnsserverIpaddr;
	private long sgwIp;
	private long enbIp;
	private String sgw;
	private String enb;
	private long ci;
	private String imsi;
	private String domianName;
	private String returnIpaddr;
	private long responsetime;
	private String returncode;
	private int ratType;
	private long ulTeid;
	private long ttl;
	private String lasttime;
	private String servicetype;
	private long userIpb;
	private long zoneId;
	private long tac;
	private String imei;
	private String msisdn;
	private String mobileType;
	private String vipnumber;

	public DnsQueryLteInfo(String line) {
		String[] listArray = line.split(",");

		this.frame = this.parseValue(listArray[0]);
		this.lastFrame = this.parseValue(listArray[1]);
		this.ttime = listArray[2];
		this.recordFileIndex = this.parseValue(listArray[3]);
		this.lastFileindex = this.parseValue(listArray[4]);
		this.apn = listArray[5];
		this.userIpValue = this.parseValue(listArray[6]);
		this.dnsserverIpaddr = this.parseValue(listArray[7]);
		this.sgwIp = this.parseValue(listArray[8]);
		this.enbIp = this.parseValue(listArray[9]);
		this.sgw = listArray[10];
		this.enb = listArray[11];
		this.ci = this.parseValue(listArray[12]);
		this.imsi = listArray[13];
		this.domianName = listArray[14];
		this.returnIpaddr = listArray[15];
		this.responsetime = this.parseValue(listArray[16]);
		this.returncode = listArray[17];
		this.ratType = Integer.parseInt(listArray[18]);
		this.ulTeid = this.parseValue(listArray[19]);
		this.ttl = this.parseValue(listArray[20]);
		this.lasttime = listArray[21];
		this.servicetype = listArray[22];
		this.userIpb = this.parseValue(listArray[23]);
		this.zoneId = this.parseValue(listArray[24]);
		this.tac = this.parseValue(listArray[25]);
		this.imei = listArray[26];
		this.msisdn = listArray[27];
		this.mobileType = listArray[28];
		if (listArray.length > 29) {
			this.vipnumber = listArray[29];
		}
	}

	private long parseValue(String value) {
		if (null != value && !"".equals(value)) {
			return Long.parseLong(value);
		}

		return 0l;
	}

	public long getFrame() {
		return frame;
	}

	public void setFrame(long frame) {
		this.frame = frame;
	}

	public long getLastFrame() {
		return lastFrame;
	}

	public void setLastFrame(long lastFrame) {
		this.lastFrame = lastFrame;
	}

	public String getTtime() {
		return ttime;
	}

	public void setTtime(String ttime) {
		this.ttime = ttime;
	}

	public long getRecordFileIndex() {
		return recordFileIndex;
	}

	public void setRecordFileIndex(long recordFileIndex) {
		this.recordFileIndex = recordFileIndex;
	}

	public long getLastFileindex() {
		return lastFileindex;
	}

	public void setLastFileindex(long lastFileindex) {
		this.lastFileindex = lastFileindex;
	}

	public String getApn() {
		return apn;
	}

	public void setApn(String apn) {
		this.apn = apn;
	}

	public long getUserIpValue() {
		return userIpValue;
	}

	public void setUserIpValue(long userIpValue) {
		this.userIpValue = userIpValue;
	}

	public long getDnsserverIpaddr() {
		return dnsserverIpaddr;
	}

	public void setDnsserverIpaddr(long dnsserverIpaddr) {
		this.dnsserverIpaddr = dnsserverIpaddr;
	}

	public long getSgwIp() {
		return sgwIp;
	}

	public void setSgwIp(long sgwIp) {
		this.sgwIp = sgwIp;
	}

	public long getEnbIp() {
		return enbIp;
	}

	public void setEnbIp(long enbIp) {
		this.enbIp = enbIp;
	}

	public String getSgw() {
		return sgw;
	}

	public void setSgw(String sgw) {
		this.sgw = sgw;
	}

	public String getEnb() {
		return enb;
	}

	public void setEnb(String enb) {
		this.enb = enb;
	}

	public long getCi() {
		return ci;
	}

	public void setCi(long ci) {
		this.ci = ci;
	}

	public String getImsi() {
		return imsi;
	}

	public void setImsi(String imsi) {
		this.imsi = imsi;
	}

	public String getDomianName() {
		return domianName;
	}

	public void setDomianName(String domianName) {
		this.domianName = domianName;
	}

	public String getReturnIpaddr() {
		return returnIpaddr;
	}

	public void setReturnIpaddr(String returnIpaddr) {
		this.returnIpaddr = returnIpaddr;
	}

	public long getResponsetime() {
		return responsetime;
	}

	public void setResponsetime(long responsetime) {
		this.responsetime = responsetime;
	}

	public String getReturncode() {
		return returncode;
	}

	public void setReturncode(String returncode) {
		this.returncode = returncode;
	}

	public int getRatType() {
		return ratType;
	}

	public void setRatType(int ratType) {
		this.ratType = ratType;
	}

	public long getUlTeid() {
		return ulTeid;
	}

	public void setUlTeid(long ulTeid) {
		this.ulTeid = ulTeid;
	}

	public long getTtl() {
		return ttl;
	}

	public void setTtl(long ttl) {
		this.ttl = ttl;
	}

	public String getLasttime() {
		return lasttime;
	}

	public void setLasttime(String lasttime) {
		this.lasttime = lasttime;
	}

	public String getServicetype() {
		return servicetype;
	}

	public void setServicetype(String servicetype) {
		this.servicetype = servicetype;
	}

	public long getUserIpb() {
		return userIpb;
	}

	public void setUserIpb(long userIpb) {
		this.userIpb = userIpb;
	}

	public long getZoneId() {
		return zoneId;
	}

	public void setZoneId(long zoneId) {
		this.zoneId = zoneId;
	}

	public long getTac() {
		return tac;
	}

	public void setTac(long tac) {
		this.tac = tac;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getMsisdn() {
		return msisdn;
	}

	public void setMsisdn(String msisdn) {
		this.msisdn = msisdn;
	}

	public String getMobileType() {
		return mobileType;
	}

	public void setMobileType(String mobileType) {
		this.mobileType = mobileType;
	}

	public String getVipnumber() {
		return vipnumber;
	}

	public void setVipnumber(String vipnumber) {
		this.vipnumber = vipnumber;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("DnsQueryLteInfo [frame=");
		builder.append(frame);
		builder.append(", lastFrame=");
		builder.append(lastFrame);
		builder.append(", ttime=");
		builder.append(ttime);
		builder.append(", recordFileIndex=");
		builder.append(recordFileIndex);
		builder.append(", lastFileindex=");
		builder.append(lastFileindex);
		builder.append(", apn=");
		builder.append(apn);
		builder.append(", userIpValue=");
		builder.append(userIpValue);
		builder.append(", dnsserverIpaddr=");
		builder.append(dnsserverIpaddr);
		builder.append(", sgwIp=");
		builder.append(sgwIp);
		builder.append(", enbIp=");
		builder.append(enbIp);
		builder.append(", sgw=");
		builder.append(sgw);
		builder.append(", enb=");
		builder.append(enb);
		builder.append(", ci=");
		builder.append(ci);
		builder.append(", imsi=");
		builder.append(imsi);
		builder.append(", domianName=");
		builder.append(domianName);
		builder.append(", returnIpaddr=");
		builder.append(returnIpaddr);
		builder.append(", responsetime=");
		builder.append(responsetime);
		builder.append(", returncode=");
		builder.append(returncode);
		builder.append(", ratType=");
		builder.append(ratType);
		builder.append(", ulTeid=");
		builder.append(ulTeid);
		builder.append(", ttl=");
		builder.append(ttl);
		builder.append(", lasttime=");
		builder.append(lasttime);
		builder.append(", servicetype=");
		builder.append(servicetype);
		builder.append(", userIpb=");
		builder.append(userIpb);
		builder.append(", zoneId=");
		builder.append(zoneId);
		builder.append(", tac=");
		builder.append(tac);
		builder.append(", imei=");
		builder.append(imei);
		builder.append(", msisdn=");
		builder.append(msisdn);
		builder.append(", mobileType=");
		builder.append(mobileType);
		builder.append(", vipnumber=");
		builder.append(vipnumber);
		builder.append("]");
		return builder.toString();
	}

}
